<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>

</head>
<body>
<div>
    <%if(d==0){%>
    <% columnlist.forEach(function(data){ %>
    <form action="/mycenter/changecolumn" method="post">
        <p>栏目名称：<input type="text" name="name" value="<%=data.name%>"></p>
        <p>栏目关键字：<input type="text" name="key" value="<%=data.key%>"></p>
        <p>栏目说明：<textarea name="desc"><%=data.desc%></textarea></p>
        <p>栏目排序：<input type="text" name="pid" value="<%=data.pid%>">(从大到小排序)</p>
        <p>所属栏目：<select name="fid">

                <option value="0" selected="selected">父栏目</option>

                <option value="<%=data._id%>"><%=data.name%></option>

            </select></p>
        <input type="hidden" name="id" value="<%=data._id%>">
        <p><input type="submit"> </p>
    </form>
    <%})%>
  <%}else{%>
     <p>恭喜你，修改栏目成功！</p>
  <%}%>
</div>
</body>
</html>